#include <iostream>//main.cpp
#include "Mammal.cpp"

using namespace std;

int main()
{
    Mammal animal("transparent",20);
    animal.print();
    Dog doggy("black and white",30);
    doggy.print();
    Cat kitty("brown",10);
    kitty.print();
    Dog* pd = new Dog("gray",15);
    pd->print();
    Cat* pc = new Cat("black",8);
    pc->print();
    pd = &doggy;
    pc = &kitty;
    pd->print();
    pc->print();
    delete pd;
    delete pc;
    animal.print();
    kitty.print();
    doggy.print();
    cout<<"Main function ends."<<endl;

    return 0;
}
